﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.ServiceDay
{
    /// <summary>
    /// 积分商品表
    /// </summary>
    [SugarTable]
    public class ServiceDayPointsProduct
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; }

        /// <summary>
        /// 优惠卷UUID
        /// </summary>
        public Guid PaymentCouponUUID { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 商品标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 商品介绍
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 商品所需分数
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// 商品数量 - 库存
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 每人限制次数
        /// </summary>
        public int LimitParticipationCount { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public Status Status { get; set; } = Status.Enable;

        public Status IsDeleted { get; set; } = Status.Disable;
    }
}
